package com.wangys.controller;

import com.wangys.entities.Sbxc;
import com.wangys.mapper.SbxcMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@ResponseBody
@CrossOrigin
@RequestMapping("/sbxc")
public class SbxcController {
   @Autowired(required = false)
    private SbxcMapper sbxcMapper;
   @RequestMapping("/select")
    public List<Sbxc> select(){
       return  sbxcMapper.select();
   }
}
